package com.qyer.search.db;

import com.qyer.commons.persistence.AbstractRedisOperator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by tangzheng on 16/8/10.
 */
public class POIInfoRedisOperator extends AbstractRedisOperator {
  private static final Logger LOGGER = LoggerFactory.getLogger(SearchResultRedisOperator.class);

  private static class InnerHolder {

    private static final POIInfoRedisOperator INSTANCE = new POIInfoRedisOperator();
  }

  private POIInfoRedisOperator() {
    String file = "redis.poi.properties";
    try {
      initByLocalConf(file);
    } catch (Exception e) {
      LOGGER.error("Cannot load local config file(" + file + ").", e);
    }
  }

  public static POIInfoRedisOperator getInstance() {
    return InnerHolder.INSTANCE;
  }
}
